Chain

Syntax: @Chain knowledge_module[, string variable]

The Chain command can be used to call different Knowledge Modules in the same Knowledge Builder Project. When the inference in the called Knowledge Module is complete, control is passed back to the calling Knowledge Module, where inference resumes from after the Chaining call.

The optional parameter can be used to pass the value of a single String Variable, provided a String Variable with the same name (or a shortcut to it) is defined in the called Module. This string variable is typically used in conjunction with the @EncodeData & DecodeData commands to pass the value of any number of objects between the modules.

As an alternative to passing the string variable in the @Chain, Object values can be shared by using Object Shortcuts and setting their Global Runtime Value status (see Global Objects with Shortcuts).

The Related Knowledge Modules Tab of the calling Knowledge Module must include all the names of all Knowledge Modules it calls using the @Chain command.

As an alternative to the @Chain command, chaining can also be implemented by inserting a Knowledge Module inside a Decision Tree. This method of chaining will automatically update the Related Knowledge Modules list.